﻿namespace PMS.Data.Entities.Customers
{
    public class Organize : BaseEntity
    {
        private string _displayname;
        /// <summary>
        /// Gets or set the Name of Organize
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// Gets or set the DisplayName on Html Page
        /// </summary>
        public string DisplayName
        {
            get => string.IsNullOrEmpty(_displayname) ? Name : _displayname;
            set => _displayname = value;
        }
        /// <summary>
        /// Gets or set the ParentId of OrganizeTree
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// Reserve Field for Extra Info of OrganizeNode
        /// </summary>
        public int DataType { get; set; }
        /// <summary>
        /// Gets or set the Order for OrganizeTree sort
        /// </summary>
        public int DisplayOrder { get; set; }
        //Seted On BaseEntity
        //public bool IsActive { get; set; }
        //public DateTime CreatedOnTimeUtc { get; set; }
        //public DateTime UpdatedOnTimeUtc { get; set; }
         
    }
}
